const fs = require('fs')
const router = require('express').Router()
let dirs = fs.readdirSync('./router/routes')
dirs.forEach(filename => {
  router.use(require('./routes/' + filename))
})
module.exports = router